package design.simdi.code.final_paper.core.daos;

import it.openutils.dao.hibernate.HibernateDAO;
import it.openutils.dao.hibernate.HibernateDAOImpl;

import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import design.simdi.code.final_paper.core.entities.Keyword;

/**
 * 
 * @author Marius Dumitriu - (Jun 21, 2010 - 1:21:46 PM)
 * 
 */
public interface KeywordDao extends HibernateDAO<Keyword, Long> {
	@Repository(value = "keywordDao")
	public static class KeywordDaoImpl extends HibernateDAOImpl<Keyword, Long> implements KeywordDao {

		@Autowired
		public KeywordDaoImpl(SessionFactory factory) {
			setSessionFactory(factory);
			setReferenceClass(Keyword.class);
		}

	}

}
